<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h2 :style="styleArr">hello title</h2>
    </div>
    <script type="module">
      import { createApp, ref, reactive, computed } from "./vue.esm-browser.js";
      const app = createApp({
        setup() {
          const styleArr = ref([
            { fontSize: "40px", color: "red" },
            { border: "solid 1px" },
          ]);
          return { styleArr };
        },
      });
      app.mount("#app"); //挂载
    </script>
  </body>
</html>
